package com.mall.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.ModelAttribute;

import com.mall.bean.User;
import com.mall.bean.view.UserView;

public interface IUserService {
	//注册用户
	//public String register(@Param("username") String username,@Param("age")String age,@Param("school") String school,@Param("phone") String phone,@Param("email") String email,@Param("password") String password,@Param("password1") String password1);
	public String register(UserView userView);
	
	//登录用户
	public User login(String phone,String password);
	public User login1(String email,String password);
	
	//检查用户名，电话，邮件唯一性
	public int checkUser(String phone);
	public int checkUser2(String email);

	
}
